package cn.telling.product.service.impl;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import cn.telling.product.dao.IBuyerDao;
import cn.telling.product.service.IBuyerService;
import cn.telling.product.vo.BuyerVo;

/**
 * 
 * @ClassName: BuyerServiceImpl 
 * @Description: 买家业务服务接口的实现
 * @author 陈赟 
 * @date 2015年6月17日 下午3:10:05 
 *
 */
@Service("buyerService")
public class BuyerServiceImpl implements IBuyerService {
    
    @Autowired
    @Qualifier("buyerDao")
    private IBuyerDao buyerDao;

    @Override
    public BuyerVo getBuyerByBuyerId(BigDecimal buyerId) {
        return buyerDao.getBuyerByBuyerId(buyerId);
    }

    @Override
    public List<BuyerVo> getBuyerBySupplyId(String supplyId) {
        return buyerDao.getBuyerBySupplyId(supplyId);
    }

}
